package mju.cxf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mju.cxf.dto.AdminLoginDTO;
import mju.cxf.dto.EmployeeDTO;
import mju.cxf.dto.EmployeeLoginDTO;
import mju.cxf.dto.ResetPasswordDTO;
import mju.cxf.entity.Admin;
import mju.cxf.entity.Employee;
import mju.cxf.vo.EmployeeLoginVO;
import mju.cxf.vo.EmployeeVO;

import java.util.List;

/**
 * <p>
 * 员工表 服务类
 * </p>
 *
 * @author 郑献
 * @since 2024-10-13
 */
public interface EmployeeService extends IService<Employee> {

    Page<EmployeeDTO> selectPageByName(String empNumber, String name, int current, int size);

    boolean saveEmployee(EmployeeDTO employeeDTO);

    boolean updateEmployee(EmployeeDTO employeeDTO);

    boolean deleteEmployee(Integer id);

    boolean deleteEmployees(List<Integer> ids);

    Employee loginEmployee(EmployeeLoginDTO employeeLoginDTO);

    boolean updatePassword(ResetPasswordDTO resetPasswordDTO);
}
